﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AvvaMobileNHibernateHelperKit
{
    public partial class SplashScreen : Form
    {
        public SplashScreen()
        {
            InitializeComponent();
            
        }

        int time = 0;
        private void timer_Tick(object sender, EventArgs e)
        {
            if(time == 2)
            {
                new MainForm().Show();                
                this.Activate();
            }
            else if(time == 4)
            {
                timer.Enabled = false;
                timer.Dispose();
                this.Hide();
                return;
            }
            time += 1;
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {
            
        }

        private void SplashScreen_Load(object sender, EventArgs e)
        {            
            System.Threading.Thread.Sleep(2000);
        }
    }
}